package com.gxp.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.gxp.util.common.GXPConstant;

public class Order implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -1061991552507549749L;

	private Integer orderId;

    private String userId;

    private Integer gameId;

    private Integer serverId;

    private BigDecimal price;

    private String unit;

    private Integer amount;

    private Date tradeDate;

    private String tradeLocation;

    private String remarks;

    private Integer status;

    private Date createDt;

    private Date modifiedDt;
    
    private Integer goodsId;
    
    private String goodsName;
    
    private Integer goodsType;
    
    private String gameName;
    
    private String serverName;
        

    public String getTradeDateStr() {
    	if (tradeDate == null) {
    		return "";
    	}
        return GXPConstant.TIMEFORMAT.format(tradeDate);
	}

	public String getCreateDateStr() {
    	if (createDt == null) {
    		return "";
    	}
        return GXPConstant.TIMEFORMAT.format(createDt);
	}

	public String getModifiedDateStr() {
    	if (modifiedDt == null) {
    		return "";
    	}
        return GXPConstant.TIMEFORMAT.format(modifiedDt);
	}

	public String getGameName() {
		return gameName;
	}

	public void setGameName(String gameName) {
		this.gameName = gameName;
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(Integer goodsType) {
		this.goodsType = goodsType;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Integer getGameId() {
        return gameId;
    }

    public void setGameId(Integer gameId) {
        this.gameId = gameId;
    }

    public Integer getServerId() {
        return serverId;
    }

    public void setServerId(Integer serverId) {
        this.serverId = serverId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Date getTradeDate() {
        return tradeDate;
    }

    public void setTradeDate(Date tradeDate) {
        this.tradeDate = tradeDate;
    }

    public String getTradeLocation() {
        return tradeLocation;
    }

    public void setTradeLocation(String tradeLocation) {
        this.tradeLocation = tradeLocation == null ? null : tradeLocation.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getModifiedDt() {
        return modifiedDt;
    }

    public void setModifiedDt(Date modifiedDt) {
        this.modifiedDt = modifiedDt;
    }
}